<include file="__THEME__/header" />
<link href="../Public/css/Mess.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../Public/msg.js"></script>
<link href="../Public/css/space.css" rel="stylesheet" type="text/css" />
<div class="contents lbg B"> <include file="../Public/home_left" />
  <div class="contents_min w787">
  <h3 class="tit_h3">{:L('msg_center')}</h3>
    <div class="write_info">
      <div class="tab">
        <!-- 切换标签 begin  -->
        <ul>
           <li>
            <span><a href="{:U('home/Message/index','type=notify')}">{:L('notify')}</a></span>
          </li>
          <li>
            <span><a href="{:U('home/Message/index','type=inceptbox')}">{:L('inbox')}</a></span>
          </li>
          <li  class="on">
            <span><a href="{:U('home/Message/index','type=sendbox')}">{:L('outbox')}</a></span>
          </li>
          <li>
            <span><a href="{:U('home/Message/index','type=send')}">{:L('msg_write')}</a></span>
          </li>
        </ul>
      </div>
      <div class="mt20">
        <div class="MList line" style="padding-left:0">
             <!-- 好友日志 begin  -->
          <div class="MenuSub" style="_padding-top:7px">
            <label for="message_selector">{:L('select')}：</label>
           <select id="message_selector2" name="message_selector2" onchange="select_change(this)" >
                        <option selected="selected" value="^_^">---</option>
                        <option value="unAll">{:L('select_none')}</option>
                        <option value="read">{:L('read')}</option>
                        <option value="unread">{:L('unread')}</option>
                        <option value="all">{:L('all')}</option>
                    </select>
                    <a href="javascript:del_some();" class="cGray2 bj_all">{:L('delete')}</a></div>
<php>if($list){</php>            
          <div class="lh16 mb10 td_line">
            <table width="100%" border="0" cellspacing="0" cellpadding="3">
                            <volist name="list" id="msg">
                                <tr id="msg_{$msg.id}">
                                    <td width="48" align="center" class="btmline">
                                        <input type="checkbox" name="checkbox" id="checkbox" value="{$msg.id}" class='checkbox read' />
                                    </td>
                                    <td width="70" class="btmline"><span class="headpic50"><a href="{:U('space/View/','uid='.$msg['toUserId'])}"><img src="{$msg.toUserId|getUserFace}" /></a></span></td>
                                    <td width="184" class="btmline">{:L('to')}：<a href="{:U('space/View/','uid='.$msg['toUserId'])}">{$msg.toUserId|getUserName}</a><br />
                                    {$msg.cTime|friendlyDate="full"} </td>
                                    <td width="473" class="btmline"><a href="__URL__&act=view&t=send&lid={$msg['id']}&id=<php> if($msg['replyMsgId'] == 0){ echo $msg['id']; }else{ echo $msg['replyMsgId']; } </php> ">{$msg.subject}</a> <br />
                                    {$msg.content|msubstr=0,90}
                                    <a href="#nogo"></a></td>
                                    <td width="60" class="btmline" align="center"><a href="javascript:del_msg({$msg.id})">{:L('delete')}</a></td>
                                </tr>
                            </volist>
              </tbody>
            </table>
			 <p class="page alR mb20 mt5"> {$page} </p>
          </div>
		  
<php>}else{</php>
            <div class="alC f14"><!-- 没有发信要显示的内容 -->
                    <p>{:L('no_mail')}</p>
             </div>
<php>}</php>
        </div>
        <!-- 好友日志 end  -->
      </div>
    </div>
  </div>
  <div class="C"></div>
</div>
<include file="__THEME__/footer" /> 